home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Template / c / LinkSprite < prev    next >
Text File  |  1995-01-14  |  2KB  |  40 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    Template.LinkSprite.c
  12.     Author:  Copyright © 1994 Lenny
  13.     Version: 0.01 (18 Nov 1994)
  14.     Purpose: Updates the cached Template data for the specified window,
  15.              so that any sprite icons subsequently displayed in that window
  16.              will be searched for in the specified sprite area.
  17.     History: 0.01 (18 Nov 94) : Added 'Template_LinkSpriteArea()'
  18.  
  19. */
  20.  
  21. /* --- LOAD HEADERS ------------------------------------------------------ */
  22.  
  23. /* --- DeskLib ----------------------------------------------------------- */
  24. #include "DeskLib:Wimp.h"
  25. #include "DeskLib:Sprite.h"            /* Sprite handling                  */
  26. #include "DeskLib:Template.h"          /* Template loading and caching     */
  27.  
  28. /* === FUNCTION DEFINITIONS ============================================== */
  29.  
  30. extern void Template_LinkSpriteArea(char *identifier, sprite_area area)
  31. {
  32.   window_block          *wblock;
  33.  
  34.   wblock = Template_Find(identifier);
  35.   if (wblock != NULL)
  36.     wblock->spritearea = area;
  37. }
  38.  
  39. /***************************************************************************/
  40.